<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="quik.group.GroupProc"%>
<%@page import="java.util.ArrayList"%>
<%@page import="comm.util.QuikHashMap"%> 
<%
	GroupProc group = new GroupProc();
	ArrayList lt = null;
	lt = group.getMembersGroupInfo(session.getAttribute("SESSION_MEMBER_SEQ").toString());
	int cntGroups = 0;
	if(lt!=null)
		cntGroups = lt.size();
%>
<h3>내 그룹</h3>   
<div>
	<%
	if(lt!=null){
		for(int i = 0; i<lt.size();i++){
			QuikHashMap hm = new QuikHashMap(); 
			hm = (QuikHashMap)lt.get(i);%>
			<div id="content-top"></div>
		<div id="lista" class="box">
			<ul>
			<li>
				<div><img width="100" height="100" src="./data/innerGroupImg/<%=hm.get("GROUP_IMG")%>"/></div>
			</li>
			<li><%=hm.get("GROUP_NAME")%></li>
			<li><%=hm.get("GROUP_INTRO")%></li>
			<li><%=hm.get("COUNT")%>명</li>
			<li><%if(hm.get("GROUP_TYPE").toString().equals("0")){%>
				공개
			<%}else{ %>
				비공개
			<%} %></li>
			<li><a href="<%=hm.get("ADMIN_MEMBER_SEQ")%>"><%=hm.get("ADMIN_MEMBER_NICK")%></a></li>
			<li><%=hm.get("GROUP_REGDATE")%></li>
			<li>
				<form action="./jsp/mypage/outGroupProc.jsp" method="POST">
				<input type="hidden" name="url" value="../../?content=mypage&menu=profile&sub=mygroup"/>
				<input type="hidden" name="innergroup_seq" value="<%=hm.get("INNERGROUP_SEQ")%>"/>
				<input type="submit" value="탈퇴"/>
				</form>
			</li>
			</ul>
			</div>
		<div id="content-bottom"></div>
		<%}
	}%>
	
</div>